import Vue from 'vue'
import Router from 'vue-router'
import myRouter from './myRouter';
Vue.use(Router)
const VueRouterPush = Router.prototype.push //防止重复点击左边菜单时控制台显示的路由报错
Router.prototype.push = function push (to) { //防止重复点击左边菜单时控制台显示的路由报错
  return VueRouterPush.call(this, to).catch(err => err)
}
export default new Router({
  routes: [
    ...myRouter,
  ]
})
